using FSM.Model; 
using System; 
using System.Collections.Generic; 
using System.Text; 
 
namespace FSM.IBll 
{ 
    public interface IRelMenuActionBll 
    { 
        #region 查询 
        /// <summary> 
        /// 根据键值查询单个信息 
        /// </summary> 
        /// <param name="pkid">键值</param> 
        /// <returns></returns> 
        rel_menu_action Get(string pkid); 
 
        /// <summary> 
        /// 查询批量信息 
        /// </summary> 
        /// <param name="menu_no">菜单编号</param> 
        /// <param name="act_no">动作编号</param> 
        /// <param name="page">页码</param> 
        /// <param name="page_size">每页显示的条数</param> 
        /// <returns></returns> 
        Tuple<List<rel_menu_action>, int> List(string menu_no, string act_no, int page, int page_size);

        /// <summary>
        /// 通过菜单编号获得其拥有的动作信息
        /// </summary>
        /// <param name="menu_no">菜单编号</param>
        /// <returns></returns>
        List<sys_action> ListByMenuNo(string menu_no);
        #endregion

        #region 提交 
        /// <summary> 
        /// 添加当前列表数据 
        /// </summary> 
        /// <param name="model">实体</param> 
        /// <returns></returns> 
        bool Insert(rel_menu_action model);

        /// <summary>
        /// 添加当前列表数据
        /// </summary>
        /// <param name="oper">操作人员</param>
        /// <param name="menu_no">菜单编号</param>
        /// <param name="act_nos">动作编号列表</param>
        /// <returns></returns>
        bool BatchInsert(string oper, string menu_no, List<string> act_nos);

        /// <summary> 
        ///  删除当前列表数据 
        /// </summary> 
        /// <param name="pkid_arr">键值</param> 
        /// <returns></returns> 
        bool Delete(params string[] pkid_arr); 
        #endregion 
    } 
} 
